#ifndef TIMEITEM_H
#define TIMEITEM_H

#include <QGraphicsObject>
#include "mytime.h"


class TimeItem : public QGraphicsObject
{
    Q_OBJECT
public:
    TimeItem();
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    virtual QRectF boundingRect() const;
    void    beginTime(bool bcontinue = false);
    void    pauseTime();
    void    endTime();

    QTimer              *m_time;
    QString             m_strtime;
    MyTime              m_mmt;//my time
public slots:
    void updateTime();
};

#endif // TIMEITEM_H
